package com.wang.springbootinit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wang.springbootinit.model.entity.ChatHistory;
import com.wang.springbootinit.model.param.ChatHistoryParam;
import com.wang.springbootinit.model.vo.ChatHistoryVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ChatHistoryService extends IService<ChatHistory> {

    boolean saveChatHistory(ChatHistory chatHistory);

    boolean saveChatHistories(List<ChatHistory> chatHistory);

    List<ChatHistoryVO> listByParam(ChatHistoryParam param, HttpServletRequest request);

    List<ChatHistoryVO> detail(ChatHistoryParam param, HttpServletRequest request);

    void generatePdf(String  conversationId, HttpServletRequest request, HttpServletResponse response);
}
